< previous page page_923 next page >

Page 923
Steps in Creating a Help File
You should follow these steps in order to build a help file for your application. (This lesson focuses on each step in detail.)
1. Write a topic file. This is the word processing document that contains the text and codes of the help file.
2. Save the topic file in rich text format.
3. Create a project file to tell the help compiler how to build the help file.
4. Compile your project using HCW.EXE.
5. Attach help to your Visual Basic application.
6. Test and revise as needed.
Creating Topic Files
The first step in creating your online documentation is to create a topic file. The topic file contains the text that the user sees when he or she presses F1 in your application. This file also contains codes in the form of footnotes that the WinHelp program uses to determine how the system is to function.
We used Microsoft Word 7 in the development of this lesson's examples to create the topic file. If you are not using Word, make sure your word processor supports the following capabilities:
· Saving text in rich text format
· Adding custom footnote markings
· Working with hidden text
Before starting, make sure that your default system options are set so that you can view hidden text. In Word, select Options . . . from the Tools menu. Next, select the View tab. Then, under Non-printing Characters, check the Hidden Text checkbox.
You might also want to select the Print tab and then check the Hidden Text checkbox in the Include with Document section. This allows you to print any hidden text codes entered into your document.
As with good programming, it is important that you design your help file before you build it. The following exercises cover the design of the help file at the end. You will be much better at designing the help file after you have learned how it is built. Now let's build the topic file.

 
< previous page page_923 next page >

If you like this book, buy it!